﻿<Window xmlns:my="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
        x:Class="ASPItalia.ModelVirtualCasting.WPF.Views.RecordView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:vm="http://schemas.aspitalia.com/ModelVirtualCasting/XAML/ViewModels"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        d:DataContext="{d:DesignInstance vm:RecordViewModel,IsDesignTimeCreatable=True}"
        WindowStyle="None"
        AllowsTransparency="False"
        ResizeMode="NoResize"
        ShowInTaskbar="False"
        WindowStartupLocation="CenterOwner"
        Height="377"
        Width="462" Background="{x:Null}">
    <Grid Background="#D5FFFFFF">

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button Content="X"
                Width="40"
                Height="40"
                VerticalAlignment="Top"
                HorizontalAlignment="Right"
                Click="CloseButton_Click" Style="{DynamicResource CloseButton}" />

        <Border Grid.Row="1" Background="White">
            <my:WindowsFormsHost Name="previewWindow"></my:WindowsFormsHost>
        </Border>

        <StackPanel Grid.Row="2">
            <Button Content="{Binding Path=RecordCommandText}"
                    Command="{Binding Path=RecordCommand}"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Center" />
        </StackPanel>
    </Grid>
</Window>
